home *** CD-ROM | disk | FTP | other *** search
- package symantec.itools.db.awt;
-
- public class Coordinate {
- public int row;
- public int col;
-
- public Coordinate() {
- }
-
- public Coordinate(Coordinate c) {
- this(c.row, c.col);
- }
-
- public Coordinate(int r, int c) {
- this.row = r;
- this.col = c;
- }
-
- public boolean equals(Object o) {
- if (!(o instanceof Coordinate)) {
- return false;
- } else {
- Coordinate c = (Coordinate)o;
- return this.row == c.row && this.col == c.col;
- }
- }
-
- public void setRow(int r) {
- this.row = r;
- }
-
- public void setCol(int c) {
- this.col = c;
- }
-
- public int row() {
- return this.row;
- }
-
- public int col() {
- return this.col;
- }
-
- public String toString() {
- return "Coordinate: row=" + this.row + " col=" + this.col;
- }
- }
-